package com.hxzy.shop.order.dto.resp;

import com.hxzy.shop.order.config.CustomerDoubleSerialize;
import com.hxzy.shop.order.vo.DrugGiftVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName PlaceOrderDrugDetailsV2Resp
 * @Author wengjt
 * @Date 2021/7/22 17:01
 * @Description
 **/
@Data
@ApiModel
public class PlaceOrderDrugDetailsV2Resp implements Serializable {
    @ApiModelProperty("药品id")
    private Long drugId;
    @ApiModelProperty("药品名称")
    private String drugName;
    @ApiModelProperty("药品规格")
    private String drugSpecifications;
    @ApiModelProperty("药品列表图")
    private String drugImage;
    @ApiModelProperty("药品数量")
    private Integer drugNum;


    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("药品价格")
    private BigDecimal drugPrice;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("成本价格")
    private BigDecimal costPrice;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("药品活动价格")
    private BigDecimal drugActivityPrice;


    @ApiModelProperty("是否处方药 true是 false不是")
    private Boolean prescriptionDrug;
    @ApiModelProperty("起步数量")
    private Integer baseLimit;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("打包价格")
    private BigDecimal packAmount;

    @ApiModelProperty("药品编码")
    private String drugCode;
    @ApiModelProperty("条形码")
    private String barCode;
    @ApiModelProperty("单人限购数量")
    private Integer numberRestrictedItems;


    @ApiModelProperty("是否开启会员权益0未开启，1已开启")
    private Boolean isRights;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("满足金额，则开始优惠（满减）")
    private BigDecimal amount;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("优惠金额（满减）")
    private BigDecimal discountAmount;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("折扣率(存百分比)")
    private BigDecimal discount;


    @ApiModelProperty("满多少赠送")
    private Integer howManyPiecesAreGivenAway;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("优惠券分摊金额")
    private BigDecimal couponAllocationAmount;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("会员权益金额")
    private BigDecimal memberRightsAmount;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("活动优惠金额")
    private BigDecimal activityDiscountPrice;


    @ApiModelProperty("赠品")
    private List<DrugGiftVo> drugGiftVoList;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("拼团优惠")
    private BigDecimal groupBookingDiscount;


}
